package com.baosight.risk.mapper.xtzy;

import com.baosight.risk.base.mapper.BaseMapper;
import com.baosight.risk.service.system.entity.SysMenu;
import com.baosight.risk.service.xtzy.entity.XtsqMenuAutho;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface XtsqMenuAuthoMapper extends BaseMapper<XtsqMenuAutho> {

    Integer selectRoleCode(@Param("roleCode") String roleCode);

    List<String> getMenuByRoleId(@Param("roleId") String roleId);

    Integer deleteByRoleCode(@Param("roleCode") String roleCode);

    Integer deleteByRoleIdAndCompId(@Param("roleId") String roleId, @Param("compId") String compId);

    List<XtsqMenuAutho> getByCompIdAndRoleId(@Param("compId") String compId, @Param("roleId") String roleId);

}